<?php 
 include 'db.php';
 include 'input.php';
 
 $id = $input->post("id");
 $biaoti = $input->post('biaoti');
 $content = $input->post('content');
 
 $sql = "update news set biaoti = '{$biaoti}',content = '{$content}' where id ='{$id}'";
 
 if($conn->query($sql)){
     header("Location:index.php");
 }else{
     echo "数据库连接异常";
     exit;
 }
 
?>
